package com.redheart.web.repository;

import com.redheart.web.entity.SysMenuEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SysMenuRepository  extends JpaRepository<SysMenuEntity,Long> {

    List<SysMenuEntity> findAllByTypeNotIn(int menuType);

    List<SysMenuEntity> findAllByParentId(Long parentId);
}
